﻿@model SignupModel
@{
    ViewBag.Title = "管理入口";
    Layout = "~/Areas/Backend/Views/Shared/_DefaultLayout.cshtml";

    FieldModel AdminName = ViewData["v_AdminName"] as FieldModel;
    FieldModel AdminPwd = ViewData["v_AdminPwd"] as FieldModel;
}
@section Header{
    <link href="~/Content/Iconfonts/iconfont.css" rel="stylesheet" />
}
@section bodyProp{class="entry-body"}

<div class="entry-logo"></div>
<div class="entry-form">
    @using (Html.BeginForm("Signup", "Entry", FormMethod.Post, new { id = "signup" }))
    {
        <div class="input-row">@Html.TextBoxFor(u => u.AdminName, new { @class = "input-textbox float-left", placeholder = AdminName.Placeholder, datatype = AdminName.FrontendRegExp, nullmsg = AdminName.Nullmsg, sucmsg = AdminName.Sucmsg, errormsg = AdminName.Errormsg })<span class="input-icon"><i class="iconfont icon-yonghuming"></i></span></div>
        <div class="input-row">@Html.PasswordFor(u => u.AdminPwd, new { @class = "input-textbox float-left", placeholder = AdminPwd.Placeholder, datatype = AdminPwd.FrontendRegExp, nullmsg = AdminPwd.Nullmsg, sucmsg = AdminPwd.Sucmsg, errormsg = AdminPwd.Errormsg })<span class="input-icon"><i class="iconfont icon-mima-copy"></i></span></div>
        @Html.Submit("signup-sublit", "登录", new { @class = "input-button" })
    }
</div>

@section Footer{
    <script src="~/Scripts/validform-v5.3.2/validform-v5.3.2.js" type="text/javascript"></script>
    <script src="~/Scripts/layer-v2.4/layer.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#signup").Validform({
                btnSubmit: "#signup-sublit",
                tiptype: function (msg, o, cssctl) {
                    layer.msg(msg, { icon: 5 });
                },
                tipSweep: true,
                postonce: true,
                ajaxPost: true,
                beforeCheck: function (curform) { },
                beforeSubmit: function (curform) { },
                callback: function (serverData) {
                }
            });
        });
    </script>
}